package com.tentact.service;

import com.tentact.dao.Dbutil;
import com.tentact.dao.MeetingDao;
import com.tentact.vo.Meeting;
import com.tentact.vo.MeetingRoom;

import java.util.List;

public class MeetingService {
    MeetingDao dao = new MeetingDao();

    //通过会议名称查询会议名称，会议室，起始时间，结束时间 未来七天
    public List<Meeting> SelectByNameMeeting(String meetingname) {
        return dao.SelectByNameMeeting(meetingname);
    }

    //通过会议名称查询会议名称，会议室，起始时间，结束时间
    public List<Meeting> SelelctByNameMeetingSeven(int employeeid) {
        return dao.SelelctByNameMeetingSeven(employeeid);
    }
    public List<Meeting> SelelctByNameMeetingSevens(String meetingname) {
        return  dao.SelelctByNameMeetingSevens(meetingname);
    }
    //通过会议名称查询
    public List<Meeting> SelelctByNameMeetingMan(int employeeid) {
        return dao.SelelctByNameMeetingMan(employeeid);
    }
    //修改会议状态
    public int updateByMeetings(String meetingname) {
        return  dao.updateByMeetings(meetingname);
    }

    //根据会议名称
    public Meeting SelectMeetingNameSesson(String meetingname) {

        return dao.SelectMeetingNameSesson(meetingname);
    }
    //通过会议姓名查询员工数据
    public List<Meeting> SelectByNameMettingThree(String meetingname){
        return dao.SelectByNameMettingThree(meetingname);
    }
    // 添加会议
    public int insertMeeting(MeetingRoom meetingRoom) {
        return dao.insertMeeting(meetingRoom);
    }

    //根据id查询会议室
    public MeetingRoom selectByRoomid(int roomid) {
        return dao.selectByRoomid(roomid);
    }
    //根据名称模糊查询
    public List<MeetingRoom> selectByroomname() {
        return dao.selectByroomname();
    }
    //根据id更新会议室状态
    public int updateMeetroom(MeetingRoom meetingRoom) {
        return dao.updateMeetroom(meetingRoom);
    }
}